﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace simpleHotel.Client.Hotel
{
    public partial class ucItem : UserControl
    {
        public ucItem()
        {
            InitializeComponent();
        }

        public int Value {
            get { return int.Parse(this.textBox1.Text.Trim()); }
            set { this.textBox1.Text = value.ToString(); }
        }

        private int _id;
        public int Id {
            get { return this._id; }
            set { this._id = value; }
        } 

        public string Caption {
            set { this.label1.Text = value; }
            get { return this.label1.Text; }
        }
    }
}
